<#include "header.ftl" />
	<div class="container main-wrap clearfix">
		<#include "sidebar.ftl" />
		<#if post?exists>
			<script type="text/javascript">mlog.stat.postClick('${post.id}');</script>
			<div class="main-content">
				<div class="main-posts main-item">
					<div class="post-header">
						<#-- <a class="btn fr" rel="share">分享</a> -->
						<h2 class="post-title">${post.title}<#if post.isTop><sup class="tip">置顶！</sup></#if></h2>
						<div class="post-meta">
	        					发表于${post.createTime?string('yyyy-MM-dd HH:mm:ss')}<span class="split">|</span>${post.replys}条评论<span class="split">|</span>${post.views} views                                    
						</div>
					</div>
					<div class="post-summary">
						${post.content}
					</div>
					<div class="post-ft"></div>
				</div>
				<div class="post-copyright">
					<#if post.url?has_content>
					<b>
					[转载]原文地址：
						<#if post.site?has_content>
							<a href="${post.url}" target="_blank" rel="external nofollow">《${post.site}》</a>
						<#else>
							<a href="${post.url}" target="_blank" rel="external nofollow">${post.url}</a>
						</#if>
					</b><br/>
					</#if>
					如非注明，本站文章均为原创，转载请注明出处。<br/>
					本站地址：<a href="${siteurl}" target="_blank" title="${sitename}">${sitename}</a> <a href="${siteurl}" target="_blank" title="${sitename}">${siteurl}</a><br/>
					本文地址：<a href="<@postUrl post="post" />" target="_blank" title="${post.title}"><@absolute_post_url /></a><br/>
				</div>
				<div class="line"></div>
				<div class="comment">
					<@m.widget path="/widget/comment/postComments?post=${post.id}" cache=false />
				</div>
			</div>
		<#else>
			<div class="main-content">
				<div class="main-posts main-item">
				404...  该文章没有找到
				</div>
			</div>
		</#if>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$('.main-content img').css('cursor', 'pointer');
			$('.main-content img').click(function(){
				$.fancybox.open($(this).attr('src'));
			});
		});
	</script>
<#include "footer.ftl" />